const {mix} = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix //.js('resources/assets/js/app.js', 'app/js')
    .scripts([
        'resources/assets/js/public/urlFile.js',
        'resources/assets/js/public/publicFunction.js',
        'resources/assets/js/public/checkFunction.js',
        'resources/assets/js/reservation/listPage.js',
        'resources/assets/js/reservation/statistical.js',
        'resources/assets/js/reservation/patientPool.js',
        'resources/assets/js/reservation/messageCenter.js',
        'resources/assets/js/reservation/reservationCenterPublic.js'
    ], 'public/js/reservationCenterAll.js')
    .scripts([
        'resources/assets/js/public/urlFile.js',
        'resources/assets/js/public/publicFunction.js',
        'resources/assets/js/public/checkFunction.js',
        'resources/assets/js/reservation/addReservation.js'
    ], 'public/js/addReservation.js')
    .scripts([
        'resources/assets/js/public/urlFile.js',
        'resources/assets/js/public/publicFunction.js',
        'resources/assets/js/public/checkFunction.js',
        'resources/assets/js/reservation/doctorManagement.js'
    ], 'public/js/doctorManagement.js')
    .scripts([
        'resources/assets/js/public/urlFile.js',
        'resources/assets/js/public/publicFunction.js',
        'resources/assets/js/public/checkFunction.js',
        'resources/assets/js/reservation/nurseManagement.js'
    ], 'public/js/nurseManagement.js')
    .sass('resources/assets/sass/app.scss', 'public/css');
